package generator.website;

import java.util.Iterator;
import org.eclipse.emf.common.util.EList;
import CarProject.*;
import CarProject.impl.*;;

public class GeneralAction
{
  protected static String nl;
  public static synchronized GeneralAction create(String lineSeparator)
  {
    nl = lineSeparator;
    GeneralAction result = new GeneralAction();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = NL + "public class GeneralAction";
  protected final String TEXT_2 = "ValidationForm{" + NL + "\t" + NL + "\tpublic ActionForward execute(ActionMapping mapping, ActionForm form," + NL + "\t\tHttpServletRequest request, HttpServletRespons response){}" + NL + "}";

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
     SiteWeb site = (SiteWeb) argument; 
    TableImpl laTable=(TableImpl)site.getBasedonnees().getEstCompose().get(0);
    EList<Champs> listChamps = laTable.getPossede();
    String type=null;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(laTable.getNom());
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
